#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Pablo
#
# Created:     18/09/2013
# Copyright:   (c) Monxcleyr Productions 2013
# Licence:     GPL v3
#-------------------------------------------------------------------------------
#!/usr/bin/env python

import pygame, base

class Simple(base.Base):

  """A simple object that uses a single image (image changing is allowed) instead of a
    spriteheet. """

  def __init__(self, objtype, name, attributes, imagehandler):
    base.Base.__init__(self, objtype, name, attributes, imagehandler)
    self.ancestors.append('simple')


  def draw(self, surface, offset, common):

    """ Draw object onto this surface, if visable"""


    if self.attributes['visable']:

      surface.blit(self.imagehandler.getSprite(self.attributes['sprite']), self.attributes['pos'])


